<?php
  require_once("../includes.php");
  $membership = New Membership();
  $membership->confirm_admin();

  $aantal = Les::get_max_deelnemers();

  include('../header.php');
?>

<div id='agenda'>
<div class="block">
<h2 class="red">Lesgroep Aanmaken</h2>
<div id="info">
  <?php echo Website::create_link("admin/","Administratie", "right"); ?>

<form action="action.php" method="post">
<h3>Voer hier de informatie in over de les:</h3>

<?php 
  echo Website::selection('Dag van de week', 'dag', Agenda::days());
  echo Website::selection('Tijd', 'tijd', Agenda::time_table());
  echo Website::selection('Vanaf Week', 'from', Agenda::choose_week());
  echo Website::selection('Welk Jaar', 'q_year', Agenda::choose_year());
?>

<ul>
  <li>
    <label for='tijd'>Aantal Weken</label>
    <input type="text" name='weken'>
  </li>
</ul>

<h3 class='middle'>Kies personen in deze lesgroep:</h3>

<?php for ($i = 1; $i <= $aantal; $i++) 
        echo User::selection_all('Persoon '.$i, 'keuze'.$i); ?>

<input type='hidden' name='action' value='create'>
<input type='submit' id='submitButton' value='Aanmaken'>
</form>
</div>
</div>
</div>
<?php include('../footer.php'); ?>